package com.mxpio.erp.technology.service.impl;

import com.mxpio.erp.common.technology.entity.ProcessInfo;
import com.mxpio.erp.common.technology.entity.ProdTecRoutProcAudit;
import com.mxpio.erp.common.technology.service.ProdTecRoutProcAuditService;
import com.mxpioframework.jpa.JpaUtil;
import com.mxpioframework.jpa.query.Criteria;
import com.mxpioframework.system.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author wupaa
 */
@Service
public class ProdTecRoutProcAuditServiceImpl extends BaseServiceImpl<ProdTecRoutProcAudit> implements ProdTecRoutProcAuditService {
    @Override
    @Transactional(readOnly = true)
    public List<ProdTecRoutProcAudit> list(Criteria c) {
        return JpaUtil.linq(ProdTecRoutProcAudit.class).collect("processCode", ProcessInfo.class,"processCode").where(c).list();
    }
}
